module AbrilHeartbeat
  class MysqlChecker < AbstractChecker
    def self.running?
      MysqlWrapper.client?
    end

    def self.module_name
      'MYSQL'
    end

    def self.check!
      MysqlWrapper.check_status!
      ['OK', 'Everything is under control']
    rescue => exception
      ['FAIL', exception.message]
    end
  end
end
